module.exports = {
  // 按钮权限指令
  has: {
    inserted(el, binding, vnode) {
      let btnValue = binding.value;
      let boolean = vnode.context.$store.state.permission.buttons.includes(btnValue);
      !boolean && el.parentNode.removeChild(el);
    }
  }
};
